<?php 
session_start();
include('config.php');
include('checkLoggedIn.php');
$page = 'save-alert';
$buses_list = Routes::getBuses();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta name="viewport" content="width=320, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Add Alert</title>
<link href="css/main.css" rel="stylesheet" type="text/css" />

</head>

<body>
<div id="body-wrapper">
<div id="header"><?php include('menu.php');?></div>
	<div id="Content">

		<form action="save-alert-options.php" method="post">
		<fieldset title="Bus Options">
			<legend>Alert :: Choose a Bus</legend>
			<div class="row">
				<div class="row" style="width:90px;float:left;">
					<label for="bus-number">Bus Number</label>
				</div>
					<select name="bus" size="1" style="padding:5px; clear:none;">
					<?php foreach ($buses_list as $name){?>
					      <option  style="width: 50px;margin-top:5px;margin-bottom:5px;">
					      <?php  echo $name;?></option> <?php }?>
					 </select>
			</div>
			<div class="clear"></div>
			<div class="row" style="margin-top:5px;">
				<div class="row" style="width:90px;float:left;">
					<label for="time">Time</label>
				</div>
					<select name="time_of_bus" style="padding:5px;clear:none;">
						<?php for($i=1; $i<=12; $i+=1){?>
						<option  style="width:50px;margin-top:5px;margin-bottom:5px;"><?php echo $i;?></option>
						<?php }?>		
					</select>
						<input type="radio" checked="checked" value="am" name="day_time"/> AM &nbsp;
						<input type="radio" value="pm" name="day_time"/> PM	
					
			</div>

			<div class="row" style="margin-top:10px;">
				<label>Street Name: (eg: forbes ave)</label>
				<div class="row">
					<input type="text" size="30" name ="street"></input>
				</div>
			</div>
			
		</fieldset>
			<div class="row">
				<input type="submit" value="Next" name="next" ></input>
			</div>
		</form>
		<div class="clear"></div>
	</div>
</div>
</body>
</html>